@model ShivamEMR.Model.Domain.ContactsDomain.Country

@* This partial view defines form fields that will appear when creating and editing entities *@

<div class="editor-label">
    @Html.LabelFor(model => model.Code)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.Code)
    @Html.ValidationMessageFor(model => model.Code)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.ShortName)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.ShortName)
    @Html.ValidationMessageFor(model => model.ShortName)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.FullName)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.FullName)
    @Html.ValidationMessageFor(model => model.FullName)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.Description)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.Description)
    @Html.ValidationMessageFor(model => model.Description)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.Notes)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.Notes)
    @Html.ValidationMessageFor(model => model.Notes)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.CallingCode)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.CallingCode)
    @Html.ValidationMessageFor(model => model.CallingCode)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.WebSite)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.WebSite)
    @Html.ValidationMessageFor(model => model.WebSite)
</div>

<div class="editor-label">
    Nationality
</div>
<div class="editor-field">
    @Html.DropDownListFor(model => model.NationalityID, ((IEnumerable<ShivamEMR.Model.Domain.ContactsDomain.Nationality>)ViewBag.PossibleNationalities).Select(option => new SelectListItem {
        Text = (option == null ? "None" : option.Title), 
        Value = option.ID.ToString(),
        Selected = (Model != null) && (option.ID == Model.NationalityID)
    }), "Choose...")
    @Html.ValidationMessageFor(model => model.NationalityID)
</div>
<div class="editor-label">
    ContactPicture
</div>
<div class="editor-field">
    @Html.DropDownListFor(model => model.ContactPictureID, ((IEnumerable<ShivamEMR.Model.Domain.ContactsDomain.ContactPicture>)ViewBag.PossibleContactPictures).Select(option => new SelectListItem {
        Text = (option == null ? "None" : option.Title), 
        Value = option.ID.ToString(),
        Selected = (Model != null) && (option.ID == Model.ContactPictureID)
    }), "Choose...")
    @Html.ValidationMessageFor(model => model.ContactPictureID)
</div>
